/*
 * UndoAction.java  0.4.0 / Oct 23, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.swingx.actions;

import com.cute4j.swing.AbstractAction;
import com.cute4j.swing.KeyStroke;

/**
 * Undo Action.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
public abstract class UndoAction extends AbstractAction { // NOPMD

// Public Constructors. --------------------------------------------------------

  /**
   * Constructs new UndoAction object.
   */
  public UndoAction() {
    super("&Undo", "Undo");
    setLongDescription("Undo last edit.");
    setAcceleratorKey(KeyStroke.getKeyStroke("Ctrl+Z"));
  }

}
